package com.fhzn.boss.web.converter;

import com.fhzn.boss.entity.TagType;
import com.fhzn.boss.web.request.UpdateTypeDictRequest;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/2/26
 */
public interface TagTypeConverter {
    static TagType toTag(UpdateTypeDictRequest request) {
        TagType tagType = new TagType();
        tagType.setId(request.getId());
        tagType.setName(request.getName());
        tagType.setCode(request.getCode());
        tagType.setAppCode(request.getAppCode());
        tagType.setComment(request.getComment());
        return tagType;
    }
}
